/*
 * Package: org.grassfield.common.service
 * FileName: IUserRoleService.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package service;

import java.util.List;

import bean.UserRole;


/**
 * The Interface IUserRoleService.
 */
public interface IUserRoleService {
	
	/**
	 * List.
	 * 
	 * @return the list
	 */
	public List<UserRole> list();
	
	/**
	 * Adds the.
	 * 
	 * @param userRole the user role
	 * @return the user role
	 */
	public UserRole add(UserRole userRole);
	
	/**
	 * Find.
	 * 
	 * @param id the id
	 * @return the user role
	 */
	public UserRole find(Long id);

	/**
	 * Update.
	 * 
	 * @param newUserRole the new user role
	 */
	public void update(UserRole newUserRole);

}
